package io.github.wanggit.website.demos.zipkin_service_3.service;

import io.github.wanggit.antrpc.commons.annotations.RpcAutowired;
import io.github.wanggit.antrpc.commons.annotations.RpcMethod;
import io.github.wanggit.antrpc.commons.annotations.RpcService;
import io.github.wanggit.website.demos.zipkin_api_1.BayService;
import io.github.wanggit.website.demos.zipkin_api_1.PlayService;

@RpcService
public class PlayServiceImpl implements PlayService {

    @RpcAutowired
    private BayService bayService;

    @RpcMethod
    @Override
    public String playIt(String content) {
        return bayService.sayBay("Play: " + content);
    }
}
